<!DOCTYPE html>
<html xmlns:ec="http://www.gensee.com/ec">
<head>
<meta charset="utf-8" />
<title>easy cast</title>
<script type="text/javascript" src="sdk/js/ec.js"></script>
<script type="text/javascript">
	function serverSendVote(){
		var SDK = GsEc._inner_;
		SDK.command("vote", document.getElementById("voteContent").value, "group1");
	}
</script>
</head>
<body>
<div>
<b>投票试验</b><br/>
<hr>
分组1<ec:vote roomid="rUJVZr" uid="10000" uname="vote" authcode="0" group="group0"></ec:vote>
<hr>
分组2<ec:vote roomid="rUJVZr" uid="10000" uname="vote" authcode="1" group="group1"></ec:vote>
<br/>
<hr>
服务端：
<input id="voteContent" style="width:500px" type="text" value="[{题目:'投票测试',答案1:'111',答案2:'222'}]">
<input type="button" value="服务端发起投票" onclick="serverSendVote()">
</div>
</body>
</html>
